package com.prs.crm.domain.sale;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 销售发票明细
 * @author prs.chenzhi
 *
 */
@Entity
@Table(name="saleinvoice_item")
public class SaleInvoiceItem extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private SaleInvoice invoice;
	
	@ManyToOne
	private SalesShippingDetail saleShipDetail;
	
	/**
	 * 发票价格
	 */
	private Double price;
	
	/**
	 * 发票数量 
	 */
	private Integer num;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setInvoice(SaleInvoice invoice) {
		this.invoice = invoice;
	}

	public SaleInvoice getInvoice() {
		return invoice;
	}

	public void setSaleShipDetail(SalesShippingDetail saleShipDetail) {
		this.saleShipDetail = saleShipDetail;
	}

	public SalesShippingDetail getSaleShipDetail() {
		return saleShipDetail;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getPrice() {
		return price;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getNum() {
		return num;
	}
}
